package com.studyweb.pojo.entity;

import java.time.LocalDateTime;

/**
 * 题目详细信息实体类
 */
public class QuestionDetail {
    private Long id;
    private String questionType;
    private String content;
    private String options;
    private String correctAnswer;
    private String explanation;
    private String category; // 添加category字段
    private Integer questionOrder; // 添加题目顺序字段
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    // 构造函数
    public QuestionDetail() {}

    // Getter和Setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getOptions() {
        return options;
    }

    public void setOptions(String options) {
        this.options = options;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }

    public String getExplanation() {
        return explanation;
    }

    public void setExplanation(String explanation) {
        this.explanation = explanation;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Integer getQuestionOrder() {
        return questionOrder;
    }

    public void setQuestionOrder(Integer questionOrder) {
        this.questionOrder = questionOrder;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "QuestionDetail{" +
                "id=" + id +
                ", questionType='" + questionType + '\'' +
                ", content='" + content + '\'' +
                ", options='" + options + '\'' +
                ", correctAnswer='" + correctAnswer + '\'' +
                ", explanation='" + explanation + '\'' +
                ", category='" + category + '\'' +
                ", questionOrder=" + questionOrder +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}